package com.ruicar.afs.cloud.apply.admin.manage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import com.ruicar.afs.cloud.common.modules.apply.enums.ChannelTypeEnum;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author: Lee
 * @date: 2020/5/11 19:39
 * @description: 渠道基本信息
 */
@Data
@Accessors(chain = true)
@TableName(value = "sys_channel_basic_info", autoResultMap = true)
public class SysChannelBasicInfo extends BaseEntity<SysChannelBasicInfo> {

    /**
     * 渠道Id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long channelId;
    /**
     * 渠道code码
     */
    private String channelCode;
    /**
     * 渠道名称
     */
    private String channelFullName;
    /**
     * 渠道类型
     */
    private ChannelTypeEnum channelType;
    /**
     * 管理员身份证号码
     */
    private String identityNumber;
    /**
     * 允许创建层级
     */
    private Integer hierarchy;
    /**
     * 新车账号允许创建数量
     */
    private Integer newCarUserHierarchy;
    /**
     * 二手车账号允许创建数量
     */
    private Integer oldCarUserHierarchy;
    /**
     * 渠道归属
     */
    private String channelBelong;
    /**
     * 进件是否关联车商
     */
    private String choiceCardealerSwitch;
    /**
     * 二手车是否关联车商
     */
    private String choiceCardealerSwitchOld;
}
